package com.its.web.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 朱厚强
 * @version 1.0
 * @classname BusClaimReportControllerListParam
 * 调度信息  方法参数对象
 */
@Data
public class BusDispatchInfoControllerParam {
    /**
     * 页码 默认值为1
     */
    private int pageNum = 1;

    /**
     * 页面记录大小
     * 默认值为3
     */
    private int pageSize = 3;


    /**
     * 报案编号
     */
    private String claimReportId;

    /**
     * 指派状态：0撤销 1正常
     */
    private Integer assignStatus = 1;

    /**
     * 报案时间
     */
    @JsonSerialize(using = LocalDateSerializer.class)//序列化器
    @JsonDeserialize(using = LocalDateDeserializer.class)//反序列化器
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//时间格式(只包含日期)
    private LocalDate assignTime;


    /**
     * 报案结束时间
     */
    private String end;

}
